
#ifndef TREECTEXTURE_H
#define TREECTEXTURE_H

#include<stdio.h>          // Standard input/output.
#ifdef _WIN32
	#include <windows.h>
	#include <GL/gl.h>
	#include <GL/glu.h>
	#include "GLUT/glut.h"
#else
	#include<OpenGL/gl.h>          // OpenGl include.
	#include<OpenGL/glu.h>         // OpenGl utility include.
#endif

namespace LifeSketchTree
{
class CRawLoader
{
public:
	CRawLoader();   // Constructor.
	~CRawLoader();  // Destructor.
	
	bool LoadFile(const char* file);
	
	GLuint ID;                    // ID used for generating the textures in OpenGl.
	int imageWidth;                     // Width of a texture.
	int imageHeight;                    // Height of a texture.
	
protected:
	GLuint LoadTextureRAW(const char * filename, int wrap );
	
	bool textureExist;                  // This will be used if the image was loaded.
};
}
#endif
